﻿using System;
using NewLife.YWS.Entities;
using NewLife.Web;

public partial class Center_Frame_Top : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["Act"] == "Logout")
        {
            Admin.Current = null;
        }
        
        if (!IsPostBack)
        {
            if (Admin.Current != null)
            {
                Label1.Text = Admin.Current.FriendName;
                Label2.Text = Admin.Current.RoleName;
                Label3.Text = WebHelper.UserHost;
            }
        }
    }
}